class User < ActiveRecord::Base
  has_many :games , :foreign_key => "player1_id"
  has_many :partners, :through => :games , :source=>:player2, :foreign_key => "player2_id"
end
